package com.app.lol.jungleTime;

public class MasterController {
	
	//------------------------
	//		Attributes
	//------------------------
	
	/** Master model */
	private MasterModel masterModel;
	
	/** Master view */
	private MasterView masterView;

	//------------------------
	//		Constructor
	//------------------------
	
	public MasterController(MasterModel masterModel, MasterView masterView) {
		this.masterModel = masterModel;
		this.masterView = masterView;	
	}
	
	//------------------------
	//		  Method
	//------------------------
	
	
	public void startChrono(int indexOfMonster) {
		
		TextChronoField textChronoField = masterView.getListMonsterChrono().get(indexOfMonster);
		MonsterChrono monsterChrono = masterModel.getListOfMonsterChrono().get(indexOfMonster);
		
		monsterChrono.startChrono(textChronoField);
	}
	
}
